package 设计模式.decorator;

/**
 * @功能
 * @创建时间 2020/5/3
 */
public class Client {
    public static void main(String[] args) {
        Car car = new Car();
    //    car.move();

        FlyCar flyCar = new FlyCar(car);
    //    flyCar.move();

        WaterCar waterCar = new WaterCar(flyCar);
        waterCar.move();
    }
}
